<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" >
    <title>登录界面</title>
    <link rel="stylesheet" href="/js/layui/css/layui.css">
    <style type="text/css">
        #getMessage{
            text-align:center
        }
    </style>

    <script src="/js/jquery-3.4.1.min.js"></script>
    <script src="/js/layui/layui.js"></script>
</head>
<body>

<div class="layui-row" >

    <p  style="color: red" th:text="${loginMsg}"></p>


    <div class="layui-col-md4">
    </div>



    <div class="layui-col-md4 layui-col-md-offset4">

        <table class="layui-table">
            <colgroup>
                <col width="150">
                <col width="200">
                <col>
            </colgroup>
            <thead>
            <tr>
                <th>类型</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>1--开方机</td>
                <td> 当前用户：<span th:if="${OneKUser==null}">未登录&nbsp;&nbsp;&nbsp;<a class="layui-btn layui-btn-sm" href="/toLogin?kt=1K">登录</a></span>
                    <span th:if="${OneKUser!=null}">
                    <span th:text="${OneKUser}" style="color: red"></span>&nbsp;&nbsp;&nbsp;
                        <a class="layui-btn layui-btn-sm" href="/toLogin?kt=1K">更改用户</a>
                   </span>
                </td>
            </tr>
            <tr>
                <td>1--一体机</td>
                <td>当前用户：<span th:if="${OneTUser==null}">未登录&nbsp;&nbsp;&nbsp;<a class="layui-btn layui-btn-sm" href="/toLogin?kt=1T">登录</a></span>
                    <span th:if="${OneTUser!=null}">
                   <span th:text="${OneTUser}" style="color: red" ></span>&nbsp;&nbsp;&nbsp;
                        <a class="layui-btn layui-btn-sm" href="/toLogin?kt=1T">更改用户</a>

                    </span>
                </td>
            </tr>

            <tr>
                <td>2--开方机 </td>
                <td> 当前用户：<span th:if="${TwoKUser==null}">未登录&nbsp;&nbsp;&nbsp;<a class="layui-btn layui-btn-sm" href="/toLogin?kt=2K">登录</a></span>
                    <span th:if="${TwoKUser!=null}">
                    <span th:text="${TwoKUser}" style="color: red"></span>&nbsp;&nbsp;&nbsp;
                        <a class="layui-btn layui-btn-sm" href="/toLogin?kt=2K">更改用户</a>
                   </span>
                </td>
            </tr>
            <tr>
                <td>2--一体机</td>
                <td>当前用户：<span th:if="${TwoTUser==null}">未登录&nbsp;&nbsp;&nbsp;<a class="layui-btn layui-btn-sm" href="/toLogin?kt=2T">登录</a></span>
                    <span th:if="${TwoTUser!=null}">
                   <span th:text="${TwoTUser}" style="color: red" ></span>&nbsp;&nbsp;&nbsp;
                        <a class="layui-btn layui-btn-sm" href="/toLogin?kt=2T">更改用户</a>
                    </span>

                </td>
            </tr>

            <tr>
                <td>3--开方机</td>
                <td> 当前用户：<span th:if="${ThreeKUser==null}">未登录&nbsp;&nbsp;&nbsp;<a class="layui-btn layui-btn-sm" href="/toLogin?kt=3K">登录</a></span>
                    <span th:if="${ThreeKUser!=null}">
                    <span th:text="${ThreeKUser}" style="color: red"></span>&nbsp;&nbsp;&nbsp;
                    <a class="layui-btn layui-btn-sm" href="/toLogin?kt=3K">更改用户</a>

                   </span>
                </td>
            </tr>
            <tr>
                <td>3--一体机</td>
                <td>当前用户：<span th:if="${ThreeTUser==null}">未登录&nbsp;&nbsp;&nbsp;<a class="layui-btn layui-btn-sm" href="/toLogin?kt=3T">登录</a></span>
                    <span th:if="${ThreeTUser!=null}">
                   <span th:text="${ThreeTUser}" style="color: red" ></span>&nbsp;&nbsp;&nbsp;
                   <a class="layui-btn layui-btn-sm" href="/toLogin?kt=3T">更改用户</a>
                    </span>

                </td>
            </tr>

            <tr>
                <td>4--开方机</td>
                <td> 当前用户：<span th:if="${FourKUser==null}">未登录&nbsp;&nbsp;&nbsp;<a class="layui-btn layui-btn-sm" href="/toLogin?kt=4K">登录</a></span>
                    <span th:if="${FourKUser!=null}">
                    <span th:text="${FourKUser}" style="color: red"></span>&nbsp;&nbsp;&nbsp;
                    <a class="layui-btn layui-btn-sm" href="/toLogin?kt=4K">更改用户</a>
                   </span>
                </td>
            </tr>
            <tr>
                <td>4--一体机</td>
                <td>当前用户：<span th:if="${FourTUser==null}">未登录&nbsp;&nbsp;&nbsp;<a class="layui-btn layui-btn-sm" href="/toLogin?kt=4T">登录</a></span>
                    <span th:if="${FourTUser!=null}">
                   <span th:text="${FourTUser}" style="color: red" ></span>&nbsp;&nbsp;&nbsp;
                   <a class="layui-btn layui-btn-sm" href="/toLogin?kt=4T">更改用户</a>
                    </span>

                </td>
            </tr>
            <tr>
                <td>当班 班长</td>
                <td>当前用户：<span th:if="${Monitor==null}">未登录&nbsp;&nbsp;&nbsp;<a class="layui-btn layui-btn-sm" href="/toLogin?kt=Monitor">登录</a></span>
                    <span th:if="${Monitor!=null}">
                   <span th:text="${Monitor}" style="color: #ff0000" ></span>&nbsp;&nbsp;&nbsp;
                   <a class="layui-btn layui-btn-sm" href="/toLogin?kt=Monitor">更改用户</a>
                    </span>

                </td>
            </tr>
            </tbody>
        </table>


    </div>

    <div class="layui-col-md4">
    </div>

</div>
<script>

function popupLogin(KandT) {
/*    layer.open({
        type: 2,
        area: ['300px', '200px'],
        fixed: false, //不固定
        maxmin: true,
        content: '/toLogin?kt='+KandT
    });*/
    window.location.replace('/toLogin?kt='+KandT)
}


</script>
</body>
</html>